package com.rayc.mall.api.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: Ray-C
 * @CreateTime: 2025-03-23
 * @Description: 支付确认表单DTO
 * @Version: 1.0
 */
@Data
@Builder
@ApiModel(description = "支付确认表单实体")
public class PayOrderFormDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("支付订单id不能为空")
    @NotNull(message = "支付订单id不能为空")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty("支付密码")
    @NotNull(message = "支付密码")
    private String password;
}